/* 通用表格样式 */
table {
    width: 100%;
    max-width: 800px;
    /* margin: 20px auto; */
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table tr:first-child {
    background-color: #f5f5f5;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* 表单样式 */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* 按钮样式 */
input[type="submit"],
.btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
.btn:hover {
    background-color: #45a049;
}

/* 链接按钮样式 */
.action-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.add-link {
    background-color: #4CAF50;
    margin-bottom: 10px;
}

.edit-link {
    background-color: #2196F3;
}

.delete-link {
    background-color: #f44336;
}

.action-link:hover {
    opacity: 0.9;
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}